﻿@model List<CC_day_15___Chores.Models.Bedroom>   
@{
    ViewBag.Title = "Bedroom";
}

<div>
    <h1><b>All Bedroom Chores</b></h1>

    @foreach (var index in Model)
    {
        <h3>*** @index.ChoreName</h3>
    }

</div>

<div>
    <br />
    <h1><b>Only the first Bedroom Chore should list here:</b></h1>

    @if (Model.Count() > 0)
    {
    var firstItem = Model.FirstOrDefault();
        <h3>@firstItem.ChoreName</h3>
    }

</div>
